/*
 * DocumentTest.cpp
 *
 *  Created on: 2011-10-25
 *      Author: Mark
 */

#include "DocumentTest.h"

void DocumentTest::emptyDocTest() {
	string xml("");
	Document doc(xml);
	ASSERTM("Empty document's root_element is null:",
			doc.getDocumentElement()==NULL);
}

void DocumentTest::onlyRootTest() {
	string xml("<body></body>");
	Document doc(xml);
	ASSERT_EQUALM("Document's root_element:", "body",
			doc.getDocumentElement()->getTag());
}

